from common.main_page import *
from common.read_yaml import ReadYaml
from base.base import *
airtest_data = ReadYaml(r"airtest_data.yml").get_yaml_data()#读取数据
jiakaobaodian  = airtest_data['jiakaobaodian']
poco = MainPage().poco

class LoginPage:
    def __init__(self):
        self.api = Test_Api()

    def jiakao(self):
        """
        驾考宝典元素
        """
        return poco(text=jiakaobaodian['jiakao_baodian'])

    def baoming(self):
        """
        报名元素
        """
        return poco(text=jiakaobaodian['baoming'])

    def sousuokuang(self):
        """
        报名页的输入框元素
        """
        return poco(text=jiakaobaodian['baoming_shurukuang'])

    def sousuo_anniu(self):
        """
        输入框元素
        """
        return poco(text=jiakaobaodian['sousuo'])

    def wanfeng(self):
        """
        输入框元素
        """
        return poco(text=jiakaobaodian['wanfeng'])

